# coding:utf-8
import yaml
import os


def get_yaml_data(yaml_file):
    file = open(yaml_file, 'r', encoding="utf-8")
    file_data = file.read()
    file.close()
    data = yaml.load(file_data,Loader=yaml.FullLoader)
    return data

if __name__ == '__main__':
    d = get_yaml_data(r"F:\ui_pytest\datas\hebei\hebei.yaml")
    n = d["test01"][1]["cartype"]
    print(type(d["test01"][1]["cartype"]))
    if n is None:
        print(1)
